<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="开启“gaussdb_feature_supportSyncBackupCrossSite_pcs-lite”白名单">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="TPOPS_GaussDB_00063.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="ZH-CN_TOPIC_0000002164817470">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>开启“gaussdb_feature_supportSyncBackupCrossSite_pcs-lite”白名单</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="ZH-CN_TOPIC_0000002164817470"></a><a name="ZH-CN_TOPIC_0000002164817470"></a>

<h1 class="topictitle1">开启“gaussdb_feature_supportSyncBackupCrossSite_pcs-lite”白名单</h1>
<div><p>跨项目/TPOPS的实例恢复前，需要开启“gaussdb_feature_supportSyncBackupCrossSite_pcs-lite”白名单，确保恢复功能正常。</p>
<div class="section"><h4 class="sectiontitle">操作步骤</h4><ol><li><span>使用SSH工具，通过节点的管理IP地址，使用<strong>root</strong>用户，登录TPOPS Server主节点。</span></li><li><span>在TPOPS节点执行以下命令，通过<strong>dbadmin</strong>用户登录TPOPS节点。</span><p><pre class="screen">su - dbadmin</pre>
</p></li><li><span>执行以下命令，连接TPOPS元数据库。此处登录密码以默认密码“DBS_guass12#$”为例。</span><p><pre class="screen">source gauss_env_file
gsql -p 8635 -U core -W <em>DBS_guass12#$</em> -q core -h 127.0.0.1</pre>
</p></li><li><span>执行以下命令，查询白名单是否开启。</span><p><pre class="screen">select * from dbs_feature where id = 'gaussdb_feature_supportSyncBackupCrossSite_pcs-lite';</pre>
<p>如果回显“status”为“open”证明白名单已开启。否则，请执行<a href="#ZH-CN_TOPIC_0000002164817470__li011811420158">5</a>。</p>
</p></li><li id="ZH-CN_TOPIC_0000002164817470__li011811420158"><a name="ZH-CN_TOPIC_0000002164817470__li011811420158"></a><a name="li011811420158"></a><span>执行以下命令，开启白名单。</span><p><pre class="screen">update core.dbs_feature set status = 'open' where id = 'gaussdb_feature_supportSyncBackupCrossSite_pcs-lite';</pre>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="TPOPS_GaussDB_00063.html">常见问题</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>